#ifndef TMGLOBALDEF_H
#define TMGLOBALDEF_H

#include <QtCore>
#include <QtNetwork>
#include "robotmotori.h"
#include "robotjsoni.h"
#include "robotaudioi.h"
#include "robotconfigi.h"
#include "robotpubi.h"
#include "robotfilemgri.h"
#include <Ice/Ice.h>
#include <IceStorm/IceStorm.h>

// Globle var Def
extern QString g_strRootDir;
extern QString g_strRobotType;
extern QString g_strCoreVersion;
extern QString g_strAsrKeyCN;
extern QString g_strAsrKeyEN;
extern QString g_strAudioCOM;
extern bool g_bMicEnable;
extern QSettings* g_pSettingCore;
extern QTextCodec* g_pCodecASCII;
extern TmSerialThread* g_pSerialTh;
extern TmJsonEngineThread* g_pJsonEngTh;
extern TmAudioSender* g_pAudioSender;

extern IceStorm::TopicManagerPrx g_topicMPrx;
extern TmRobotNoty* g_pRobotNotify;

// Function Def
void g_clearDir(QString strDir);
QString g_strGetMD5(QByteArray dataArray);
int g_nGetRandom(int nMin, int nMax);

#endif // TMGLOBALDEF_H
